package com.junjie.blibli.config;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.socket.server.standard.ServerEndpointExporter;

@Configuration
public class WebSocketConfig {

    @Bean
    public ServerEndpointExporter serverEndpointExporter(){
        //ServerEndpointExporter连起来读就是：服务器端点导出者
        //说白了就是用来发现webSocket服务的
        return new ServerEndpointExporter();
    }
}
